package com.framework.loippi.entity;

import com.framework.loippi.mybatis.eitity.GenericEntity;
import com.framework.loippi.mybatis.ext.annotation.Column;
import com.framework.loippi.mybatis.ext.annotation.Table;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * Entity - 论坛发布记录表
 * 
 * @author wmj
 * @version 2.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_BBS")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" }) 
@ApiModel(value="论坛发布记录表",description="论坛发布记录表")
public class TBbs implements GenericEntity {

	private static final long serialVersionUID = 5081846432919091193L;

	/** 主键 */
	@Column(id = true, name = "id", updatable = false)
	@ApiModelProperty(value = "主键")
	private Long id;
	
	/** 回复id */
	@Column(name = "pid" )
	@ApiModelProperty(value = "回复id")
	private Long pid;
	
	/** 标题 */
	@Column(name = "title" )
	@ApiModelProperty(value = "标题")
	private String title;
	
	/** 类型（0 发文，1 发文回复） */
	@Column(name = "msg_type" )
	@ApiModelProperty(value = "类型（0 发文，1 发文回复）")
	private Integer msgType;
	
	/** 信息 */
	@Column(name = "content" )
	@ApiModelProperty(value = "信息")
	private String content;
	
	/** 数据id */
	@Column(name = "data_id" )
	@ApiModelProperty(value = "数据id")
	private Long dataId;
	
	/** 论坛发布者 */
	@Column(name = "user_id" )
	@ApiModelProperty(value = "论坛发布者")
	private Long userId;

	/** 论坛发布时间 */
	@Column(name = "create_time")
	@ApiModelProperty(value = "发布时间")
	private Date createTime;

	/** 论坛发布时间 */
	@Column(name = "update_time")
	@ApiModelProperty(value = "更新时间")
	private Date updateTime;

	/** 论坛回复记录 */
	@ApiModelProperty(value = "回复记录")
	private List<BbsMsg> bbsMsgs;

	/** 论坛文件 */
	@ApiModelProperty(value = "论坛文件")
	private List<BbsFile> bbsFiles;

	/** 楼主昵称 */
	@Column(name = "nick_name")
	@ApiModelProperty(name = "楼主昵称")
	private String nickName;

	/** 论坛图片 */
	@ApiModelProperty(name = "论坛图片")
	private List<String> images;
}
